﻿using System;
using System.Collections.Generic;
 
using System.Text;

namespace GGSharp.Http
{
    public class DeleteAccountData : ChangePasswordData
    {
        public DeleteAccountData(int number, string password, string tokenID, string tokenValue)
        {
            Number = number;
            Password = password;
            TokenID = tokenID;
            TokenValue = tokenValue;

            OldPassword = new Random().Next().ToString();
            Email = "deletedaccount@gadu-gadu.pl";
        }

        public override string QueryString
        {
            get
            {
                StringBuilder queryString = new StringBuilder();
                queryString.Append("fmnumber=");
                queryString.Append(Number);
                queryString.Append("&fmpwd=");
                queryString.Append(Password);
                queryString.Append("&delete=1");
                queryString.Append("&pwd=");
                queryString.Append(OldPassword);
                queryString.Append("&email=");
                queryString.Append(Email);
                queryString.Append("&tokenid=");
                queryString.Append(TokenID);
                queryString.Append("&tokenval=");
                queryString.Append(TokenValue);
                queryString.Append("&code=");
                queryString.Append(Hash);
                return queryString.ToString();
            }
        }
    }
}
